<%-- ExMobi JSP文件，注释和取消快捷键统一为Ctrl+/ 多行注释为Ctrl+Shift+/ --%>
<%@ page language="java" import="java.util.*,org.json.*"
 contentType="application/json; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/client/adapt.jsp"%>
<%!
//jsonp处理
public String jsonp(String callbakstr,String jsonstr) throws Exception{
  return (((callbakstr==null)||(callbakstr.trim()==""))?jsonstr:callbakstr+"("+jsonstr+")");
}
%>
<%
     String outstr="";
     String username= aa.req.getParameter("username");
     if (username.trim().equals("")){
    	 username = "stranger" ;
     }
     JSONObject oj = new JSONObject();
     JSONArray jlst = new JSONArray();
     String sql = "select COLUMN_CODE,COLUMN_NAME from Mo_Common_Techparam";
     Object[] param  =new Object[]{};
     List<TableRow> lst = aa.db.query("momis", sql, param);
     for(TableRow row:lst){
    	 jlst.put(new JSONObject(row.toJson()));
     }
	  oj.put("cont", username+" Hellow World!");
	  oj.put("list", jlst);
	  oj.put("ret", "ok");
   System.out.println(oj.toString());
   String recall = aa.req.getParameter("callback");
   outstr = jsonp(recall,oj.toString());
   out.print(outstr);
%>
